<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block data-th-replace="/adminlte/base::base-head"></th:block>
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">
    <th:block data-th-replace="/adminlte/base::base-navbar"></th:block>
    <th:block data-th-replace="/adminlte/base::base-main-sidebar"></th:block>
    <div class="content-wrapper">
        <th:block data-th-replace="/adminlte/base::base-content-header"></th:block>
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <div class="card">
                            <form class="form-horizontal"
                                  action="/files/servers" method="put">
                                <div class="card-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">服务器地址</label>
                                        <div class="col-sm-10">
                                            <input type="text" name="host" class="form-control"
                                                   placeholder="带前缀完整IP或域名"
                                                   th:value="${serverInfo.host}"
                                                   autofocus="autofocus" maxlength="32">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">用户ID</label>
                                        <div class="col-sm-10">
                                            <input type="text" name="userId" class="form-control"
                                                   placeholder="用户ID" th:value="${serverInfo.userId}"
                                                   maxlength="8">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">通信密钥（16位）</label>
                                        <div class="col-sm-10">
                                            <input type="text" name="aesKey" class="form-control"
                                                   placeholder="通信密钥（16位）" th:value="${serverInfo.aesKey}"
                                                   maxlength="16">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">密钥偏移（16位）</label>
                                        <div class="col-sm-10">
                                            <input type="text" name="aesIv" class="form-control"
                                                   placeholder="密钥偏移（16位）" th:value="${serverInfo.aesIv}"
                                                   maxlength="16">
                                        </div>
                                    </div>
                                    <div class="row justify-content-center">
                                        <button type="submit" class="btn btn-info"
                                                style="width: 200px;">保存
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <th:block data-th-replace="/adminlte/base::base-footer"></th:block>
    <th:block data-th-replace="/adminlte/base::base-control-sidebar"></th:block>
</div>
</body>
</html>